
#include <stdio.h>


#include "gc.h"

BEGIN_GC_CLASS(FGC)
    public:
    void foo() {
        printf("FGC::foo, this = %p\n", this);
    }
END_GC_CLASS(FGC)

static FGC f2;
int main()
{
    {
        FGC f = new FGC();
        f->foo();
        FGC f1;
        f1 = f;
        f1->foo();
        f2 = f1;
    }
    printf("before main return.\n");
    f2->foo();
    return 0;
}

